<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<div id="loginBody">
    <div id="loginBox" class="row-fluid">
        <form id="m-loginForm" class="form-vertical" action="javascript:loginAjax()">
            <h3 style="padding-bottom: 15px">中钢集团CRM管理系统</h3>

            <div class="control-group">
                <div class="controls">
                    <div class="input-prepend">
                            <span class="add-on">
                                <i class="icon-user"></i>
                            </span>
                        <input type="text" id="username" name="username" class="loginInput" placeholder="Username">
                    </div>
                </div>
            </div>
            <div class="control-group">
                <div class="controls">
                    <div class="input-prepend">
                            <span class="add-on">
                                <i class="icon-lock"></i>
                            </span>
                        <input type="password" id="password" name="password" class="loginInput" placeholder="Password">
                    </div>
                </div>
            </div>
            <%--<% HttpSession session = request.getSession();--%>
                <%--String errorMsg="";--%>
                <%--if(session!=null&&session.getAttribute("responseInfo")!=null&&session.getAttribute("responseInfo").result){--%>

                <%--}--%>

                <%--String errorMsg = session.getAttribute("responseInfo").toString();--%>
                <%--if (errorMsg != null && errorMsg != "") {%>--%>
            <div id="loginErrorMsg" style="color: #b94a48;">${sessionScope.responseInfo.message}
            </div>
            <%--<%}%>--%>

            <div class="form-actions">
                <%--<span class="pull-left"><a href="#" class="flip-link" id="to-recover">Lost password?</a></span>--%>
                    <span class="pull-right">
                        <input type="submit" id="loginButton" class="btn btn-primary" value="登陆">
                    </span>
            </div>
        </form>
    </div>
</div>
